package com.appkubes.mall.admin.application.user.account.history.entity.dto;

import com.appkubes.mall.core.entity.MallOrderGoods;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("获取用户的收益信息数据, 用于后台->运营管理->经纪人收益明细")
public class UserAccountHistoryInfoDTO {

    // 记录
    @ApiModelProperty("历史记录表")
    private String accountSourceKey;
    @ApiModelProperty("用户key")
    private String userKey;
    @ApiModelProperty("佣金/手续费")
    private BigDecimal brokerage;
    @ApiModelProperty("来源类型: ORDER/SHARE")
    private String sourceType;
    @ApiModelProperty("来源表主键")
    private String sourceKey;
    @ApiModelProperty("来源时间")
    private String sourceTime;
    @ApiModelProperty("来源对象状态")
    private String sourceStatus;
    @ApiModelProperty("弹性域类型: ORDER")
    private String flexType;
    @ApiModelProperty("弹性域1")
    private String flexSegment1;
    @ApiModelProperty("弹性域2")
    private String flexSegment2;
    @ApiModelProperty("弹性域3")
    private String flexSegment3;
    private String createTime;
    @ApiModelProperty("PENDING:未发放, CONFIRM:已确认")
    private String state;

    //用户信息
    @ApiModelProperty("用户电话")
    String tel;
    @ApiModelProperty("用户姓名")
    String name;

    //订单信息
    @ApiModelProperty("订单号")
    String orderNo;
    @ApiModelProperty("订单价格")
    String amount;

    //上级信息
    String parentUserKey;
    @ApiModelProperty("经纪人电话")
    String parentTel;

    //推广信息
    String promoterKey;
    String promoterName;

    String utmSource;

    List<MallOrderGoods> orderGoods;
}
